package com.dxx.cloud.admin.module.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import java.math.BigDecimal;

@Schema(description = "添加日常费用请求体")
@Data
public class DailyCostAddRequest {
    @Schema(description="商户id",example="1")
    @NotNull
    private Long merId;

    @Schema(description="门店id",example="1")
    @NotNull
    private Long shopId;

    @Schema(description = "用户id", example = "1")
    @NotNull
    private Integer userId;

    @Schema(description="商品名称",example="塑料袋")
    @NotEmpty
    private String name;

    @Schema(description="商品单价",example="1")
    @NotNull
    private BigDecimal unitPrice;

    @Schema(description="商品数量",example="1")
    @NotNull
    private BigDecimal number;

    @Schema(description="支付类型:1现金 2欠账 3银行卡 4其他 5存款 11门店微信二维码 12微信客户主扫 13微信客户被扫 14微信刷脸 21门店支付宝二维码 22支付宝客户扫商户 23支付宝商户扫客户 31易收宝客户扫商户 32易收宝商户扫客户",example="1")
    private Integer payType;

    @Schema(description="支付金额")
    @JsonIgnore
    private BigDecimal payAccount;

    @Schema(description="供应商名称",example="供应商名称")
    private String supplyName;

    @Schema(description="经办人")
    private String agent;

    @Schema(description="创建者")
    @JsonIgnore
    private String creator;

    @Schema(description="操作者",example="admin")
    private String operator;


}
